import {TaskApplyData} from "../../type/Type";

export class TaskUtil {
    static getRecordNum = (unitApplyTasks: {[key: string]: TaskApplyData}, taskId: string, unitId: string): number => {
        let num = 0;
        if (unitApplyTasks) {
        } else {
            return num;
        }
        const taskApplyData = unitApplyTasks[taskId];
        const killDataMap = taskApplyData.kMap;
        if (killDataMap[unitId]) {
            num = killDataMap[unitId];
        }
        return num
    }
}